#pragma once
#include "mapss.h"
#include "frame.h"
#include "buffer.h"
#include "tostring.h"

#pragma pack(1)
class Afnbase
{
public:
	DataType pnfn;
public:
	Afnbase& Pn(uint16_t n)  {pnfn.Pn(n); return *this;	}
	Afnbase& Fn(uint8_t  n)  {pnfn.Fn(n); return *this;	}
	uint8_t  Fn(void)const   {return pnfn.Fn();			}
	uint16_t Pn(void)const   {return pnfn.Pn();			}
	bool append(Buffer&){return false;}
public:
	Afnbase(uint8_t fn=0, uint16_t pn=0)
	:pnfn(fn,pn)
	{
	}
};
#pragma pack(0)
